package map.related;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import java.util.Map.Entry;

public class DemoMap {

	public static void main(String[] args) {
		HashMap<String, String> p = new HashMap<String, String>();
		p.put("type", "doing");
		setParams(p);

	}

	
	public static void setParams(Map<String, String> param) {
		String mParams = "";
		Set<Entry<String, String>> key = param.entrySet();
		for (Map.Entry<String, String> entry : key) {
			mParams = "&" + entry.getKey() + "=" + entry.getValue();
		}
		System.out.println("map -> String : " + mParams);
	}
}
